package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.dto.bac.BacAntClassDto;
import com.ysd.lis.entity.bac.BacAntClass;
import com.ysd.lis.request.bac.BacAntClassParam;
import com.ysd.lis.service.bac.BacAntClassService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * cold_chain.sys_module 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-12-18
 */
@Api(tags = "标准模型")
@RestController
@RequestMapping("/bac/ant/antClass")
public class BacAntClassController extends BaseController {

    @Autowired
    BacAntClassService bacAntClassService;
    @ApiOperation("不分页查询")
    @GetMapping("/findBacAntClassList")
    public Result findBacAntClassList(BacAntClassParam param){
        return bacAntClassService.findBacAntClassList(param);
    }

    @ApiOperation("新增")
    @PostMapping("/addBacAntClass")
    public Result addBacAntClass(@RequestBody BacAntClass antClass){
        return  bacAntClassService.addBacAntClass(antClass);
    }

    @ApiOperation("修改")
    @PostMapping("/editBacAntClass")
    public Result editBacAntClass(@RequestBody BacAntClass supplier) {
        return bacAntClassService.editBacAntClass(supplier);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteBacAntClassList")
    public Result batchDeleteBacAntClassList(@RequestBody BacAntClassDto dto){
        return  bacAntClassService.batchDeleteBacAntClassList(dto);
    }

    @GetMapping("/syncBacAntClass")
    public Result syncBacAntClass(BacAntClassParam param){
        return bacAntClassService.syncBacAntClass(param);
    }

}
